package com.ruan.dao;

import com.ruan.entity.User;
import com.ruan.query.UserQuery;
import com.ruan.vo.UserVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName:UserMapper
 * @Author:阮昇
 * @Description:
 * @Datetime: 2023/6/29 11:01
 **/
@Repository
public interface UserMapper {
    User getUserByName(String userName);

    int register(User user1);

    int addUser(User user1);

    List<UserVo> getUserList(UserQuery userQuery);

    int editUser(User user1);

    int deleteUser(Integer id);

    int deleteUserByIds(@Param("ids") Integer[] ids);
}
